<template>
  <div>
    Child: {{count}}
  </div>
</template>

<script>
import { ref } from 'vue';

export default {
  setup () {
    const count = ref(1)
    const changeCount = (num) => {
      count.value += num
    }
    return {
      count,
      changeCount
    }
  }
}
</script>

<style lang="scss" scoped>

</style>